@extends('layouts.app')
@section('title','我的通知')
@section('content')
    <div class="container">
        <div class="panel panel-default">
            <div class="panel-body">
                @if($notifications->count())
                    <div class="notification-list">
                        @foreach($notifications as $notification)
                            @include('notifications.types._'.snake_case(class_basename($notification->type)))
                        @endforeach
                    </div>
                @else
                    <div class="empty-block">暂无通知哦</div>
                @endif
            </div>
        </div>
    </div>
    @stop